package bairui.international.console.web.controller.system.divide;

import com.lianjing.sh.spring.web.controller.enhance.module.Module;
import com.lianjing.sh.spring.web.controller.enhance.module.ModuleHead;
import com.lianjing.sh.spring.web.controller.enhance.module.body.InfoModuleBody;
import com.lianjing.sh.spring.web.controller.enhance.output.bean.DataDisplay;
import com.lianjing.sh.spring.web.controller.enhance.output.bean.DataType;
import com.lianjing.sh.spring.web.controller.enhance.output.bean.OutputBean;
import com.lianjing.sh.spring.web.controller.enhance.output.bean.OutputBeanGroup;
import com.lianjing.sh.spring.web.controller.enhance.output.bean.OutputType;
import com.lianjing.sh.spring.web.controller.enhance.output.bean.OutputWay;

/**
 *
 * Module_Info
 *
 */
class Module_Info{

	
	/**
	 * 信息模块
	 */
	public Module module(
		Module_Info_OutputModel bean, 
		C_System_Divide_Edit_EditAccess.EditAccess.Operate c_System_Divide_Edit_EditAccess_EditAccess_Operate
	){
		return
			new Module(
					new ModuleHead("详情")
						.addOperate(
							c_System_Divide_Edit_EditAccess_EditAccess_Operate
								.defaultComment("编辑")
								.defaultTarget(com.lianjing.sh.spring.web.controller.base.operate.OperateTarget.Popup)
						)
					, 
					new InfoModuleBody(
								bean
							,
							new OutputBeanGroup(
									OutputWay.Vertical, 
									OutputData.info()
								)
						)
				);
	}
	
	/**
	 * 输出信息
	 */
	private static class OutputData {
	
		private static final OutputBean[] info() {
			OutputData outputData = new OutputData();
			return new OutputBean[]{
						outputData.getFirstLevelDivideRatio(),
						outputData.getFirstLevelDivideRatioComment(),
						outputData.getFirstLevelSubDivideRatio(),
						outputData.getFirstLevelSubDivideRatioComment(),
						outputData.getSecondLevelDivideRatio(),
						outputData.getSecondLevelDivideRatioComment(),
						outputData.getSecondLevelSubDivideRatio(),
						outputData.getSecondLevelSubDivideRatioComment(),
				};
		}
	
		OutputBean getFirstLevelDivideRatio(){
			return new OutputBean("firstLevelDivideRatio", "一级分成比例", true, DataDisplay.Show, DataType.Double, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getFirstLevelDivideRatioComment(){
			return new OutputBean("firstLevelDivideRatioComment", "一级分成比例说明", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getFirstLevelSubDivideRatio(){
			return new OutputBean("firstLevelSubDivideRatio", "一级再分成比例", true, DataDisplay.Show, DataType.Double, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getFirstLevelSubDivideRatioComment(){
			return new OutputBean("firstLevelSubDivideRatioComment", "一级再分成比例说明", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getSecondLevelDivideRatio(){
			return new OutputBean("secondLevelDivideRatio", "二级分成比例", true, DataDisplay.Show, DataType.Double, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getSecondLevelDivideRatioComment(){
			return new OutputBean("secondLevelDivideRatioComment", "二级分成比例说明", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getSecondLevelSubDivideRatio(){
			return new OutputBean("secondLevelSubDivideRatio", "二级再分成比例", true, DataDisplay.Show, DataType.Double, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
		OutputBean getSecondLevelSubDivideRatioComment(){
			return new OutputBean("secondLevelSubDivideRatioComment", "二级再分成比例说明", true, DataDisplay.Show, DataType.String, new OutputType[]{OutputType.Ajax, OutputType.Excel, }, "yy/MM/dd HH:mm:ss");
		}
	}
	
	
	
	
	/**
	 * 输出模型
	 */
	

}
